class Ecommerce:
    @staticmethod
    def calculate_discount(original_price, discount):
        """
        计算折扣
        :param original_price: 原价
        :param discount: 折扣
        """
        if discount == 0:
            return '赔钱的买卖我不干'
        elif 0 < discount < 1:  # 正确输入小数打折
            return original_price * discount
        elif 1 <= discount < 10:
            return original_price * discount / 10
        else:
            return '没你这样打折的'


if __name__ == '__main__':
    print(Ecommerce.calculate_discount(100, 0))
    print(Ecommerce.calculate_discount(100, 0.9))
    print(Ecommerce.calculate_discount(100, 1))
    print(Ecommerce.calculate_discount(100, 8))
    print(Ecommerce.calculate_discount(100, 11))
